<include file="__TEMPLATE__/header.html"/>

<div class="Swd">
	<include file="__TEMPLATE__/public_member/right.html"/>

	<div class="member-right-weixinlist">
		<div class="set-weixinlist">配置中心</div>
		<div class="add-weixinlist"><i class="icon iconfont">&#xf00d8;</i><span><a href="{|U:'Member/addweiinfo'}">增加公众号</a></span></div>
		<div class="line"></div>
		<div class="fill-set-content">
			<div class="first-tr">
				<p>id</p>
				<p>微信号</p>
				<p>微信类型</p>
				<p>LOGO</p>
				<p>操作</p>

			</div>
			<foreach from="$weixinifo" value='$v'>
		<div class="send-tr-list-all">
			<div class="send-tr">
				<p><i class="icon iconfont">&#xf018b;</i>{$v['id']}</p>				
				<p>{$v.wei_number}</p>
				<p>{$v.weixin_type}</p>
				<p><img src="__ROOT__/{$v.wei_user_ico}" alt="" / style="width:50px;height:50px;"></p>
				<p><a href=""class="edi" id_data="{$v.id}">修改</a>|<a href="javascript:;" class="del" id_data="{$v.id}" >删除</a></p>
			</div>
			<span><i class="icon iconfont">&#xf00cc;</i>token:{$v.token}</span>
			<span><i class="icon iconfont">&#xf00cc;</i>EncodingAESKey:{$v.EncodingAESKey}</span>
			<span><i class="icon iconfont">&#xf00cc;</i>EncodingAESKey:http://www.cooldreamer.com/{$v.weixin_url}</span>
			<div class="cleardiv line"></div>
		</div>
			</foreach>
		</div>
	</div>
</div>
<script>
//异步删除
$('.del').click(function(){
	var id = $(this).attr('id_data');
	var divnumber = $(this).parents('.send-tr-list-all').index();
		$.ajax({
				 	url : '{|U:"Member/ajax_del_weilist"}',
				 	type: 'post',
				 	data:{'id':id},
                       success:function(data){
                         	$('.fill-set-content').find('.send-tr-list-all').eq(divnumber-1).remove();	
                       		
                       }
				 })
	
})
	

	
	

	 
	
	
</script>